extends "res://!ve/base/VEBaseRelic.gd"

func _data():
	name = "巫毒娃娃"
	
func getDec():
	return tr("刺客对中毒的敌人伤害提高，每10层提高%d%%") % [lvPer(lv,10)]

func _in():
	sys.game.connect("onChaCastHurtStart",self,"r")

func r(atkInfo):
	if atkInfo.castCha.team == sys.player.team and atkInfo.castCha.hasTab("刺客"):
		var bf = atkInfo.cha.hasAff("b_b_zhongDu")
		if bf != null:
			atkInfo.per += max(int(bf.lv / 10),1) * lvPer(lv,0.1)
